package cn.how2go.api.common;

/**
 * Created by Administrator on 2018/11/14.
 */
public class MessageResult {
    private String statusCode;
    private String title;
    private String message;

    public MessageResult(String statusCode, String title, String message) {
        this.statusCode = statusCode;
        this.title = title;
        this.message = message;
    }

    public static MessageResult getSuccess(String message){
        return new MessageResult("200","操作提示",message);
    }

    public static MessageResult getError(String code, String message){
        return new MessageResult(code,"操作提示",message);
    }

    public String getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(String statusCode) {
        this.statusCode = statusCode;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
